<?php
@include_once("./general.php");
$userName=isset($_POST["userName"])?$_POST["userName"]:0;
$password=isset($_POST["password"])?$_POST["password"]:0;
$sqlStr;
if($userName && $password){
    global $sqlStr;
    $sqlStr="select * from user_list where userName='$userName' and `password`='$password'";
    echo json_encode(query($sqlStr));
}
?>